package vidii

import "github.com/gin-gonic/gin"

/*
 * @Description:统一回复
 * @Author: 邓伟
 * @LastEditors: 邓伟
 * @Date: 2019-04-09 16:08:01
 * @LastEditTime: 2019-04-09 16:08:01
 */
func ResponsePack(ctx *gin.Context, code int, msg string) {
	ctx.JSON(200, gin.H{
		"code": code,
		"msg":  msg,
	})
}
func ResponsePackData(ctx *gin.Context, code int, msg string, data interface{}) {
	ctx.JSON(200, gin.H{
		"code": code,
		"msg":  msg,
		"data": data,
	})
}
